package com.jr.service.impl;

import com.jr.dao.IWorkOrderDao;
import com.jr.dao.impl.WorkOrderDaoImpl;
import com.jr.pojo.WorkOrder;
import com.jr.service.IWorkOrderService;
import com.jr.util.PageHelper;
import com.jr.vo.WorkOrderProject;

import java.util.ArrayList;

public class WorkOrderServiceImpl implements IWorkOrderService {

    private IWorkOrderDao iwod=new WorkOrderDaoImpl();

    @Override
    public boolean addWorkOrder(WorkOrder wo) {
        return iwod.insertWorkOrder(wo)>0;
    }

    @Override
    public int queryPageDateCount() {
        return iwod.selectPageDateCount();
    }

    @Override
    public ArrayList<WorkOrderProject> queryIndexDate(PageHelper ph) {
        return iwod.selectIndexDate(ph);
    }
}
